<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="评级管理" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="mainRatingRulFunc.goAdd()"
                            ng-disabled="!btnPermission.ratingAdd" title="{{!btnPermission.ratingAdd?'无权限执行此操作':''}}">新增</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="mainRatingRulFunc.search(1)" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                    </div>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" ng-model="mainRatingRulObj.condition.title" placeholder="标题">
                        <span class="input-group-addon cursor-pointer" ng-click="mainRatingRulFunc.search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        {{itemCol.name}}
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in mainRatingRulObj.dataList track by $index">
                                    <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingDel?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingDel"
                                                    ng-click="mainRatingRulFunc.delete(item)">删除</button>
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingEdit?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingEdit"
                                                    ng-click="mainRatingRulFunc.goEdit(item)">编辑</button>
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingMakeRule?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingMakeRule"
                                                    ng-click="mainRatingRulFunc.goMakeRule(item.id)">制定规则</button>
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingGenRate?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingGenRate"
                                                    ng-click="mainRatingRulFunc.generateRate(item.id)">生成评分</button>
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingViewRate?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingViewRate||item.isScore === 0"
                                                    ng-click="mainRatingRulFunc.viewRate(item.id)">查看评分</button>
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingMakeLevel?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingMakeLevel"
                                                    ng-click="mainRatingRulFunc.goMakeLevel(item.id)">评级制定</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="mainRatingRulObj.dataList.length > 0" ng-style="tbStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in mainRatingRulObj.dataList track by $index">
                                <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                    title="{{item[itemCol.dataField]}}">
                                    <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="mainRatingRulObj.dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="mainRatingRulObj.pageInfo" yb-refresh="mainRatingRulFunc.search()"></div>
            </div>
        </div>
        <div tab heading="{{tabFlag.name}}" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="main-area d-t-35 d-b-60">
                <form name="form" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>标题：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="title" class="form-control light-bg" ng-model="mainRatingRulObj.detailInfo.title"
                                   required yb-focus maxlength="100">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="form.title.$invalid && !form.title.focused && mainRatingRulObj.submitted">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">备注：</label>
                        <div class="col-xs-5 wrapper-none">
                            <textarea yb-word-count max-size="100" name="remark" class="form-control full" ng-model="mainRatingRulObj.detailInfo.remark"
                                      placeholder="请填写备注" style="height:100px;">
                            </textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-click="mainRatingRulFunc.saveData(form.$valid)">保存</button>
                            <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div tab heading="制定规则" active="activeFlag[2]" ng-if="activeFlag[2]||activeFlag[3]||activeFlag[4]||activeFlag[5]||activeFlag[6]||activeFlag[7]||activeFlag[8]">
            <div class="clearfix m-t-40 m-l-md">
                <div class="pull-left rating-rule-box m-r-sm" ng-click="saleCompFunc.goSaleCompList()">销售完成情况配置</div>
                <div class="pull-left rating-rule-box m-r-sm" ng-click="monthPlanFunc.goMonthPlan()">月度计划准确性配置</div>
                <div class="pull-left rating-rule-box m-r-sm" ng-click="orderManageFunc.goOrderManage()">订单管理规范性配置</div>
                <div class="pull-left rating-rule-box m-r-sm" ng-click="receiveCheckFunc.goReceiveCheck()">应收账款逾期配置</div>
                <div class="pull-left rating-rule-box m-r-sm" ng-click="allSaleCompFunc.goAllSaleComp()">总体销售完成率配置</div>
                <div class="pull-left rating-rule-box m-r-sm" ng-click="stockAndBusiFunc.goStockAndBusi()">库存管理及业务规范性加减分</div>
            </div>
        </div>
        <div tab heading="销售完成情况配置" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="clearfix" ng-show="saleCompObj.stepList.curStep == 0">
                <div class="row wrapper-y-sm">
                    <div class="operate-bar col-xs-4 font-0">
                        <button class="btn btn-operate m-r-sm" ng-click="saleCompFunc.goTime()"
                                ng-disabled="!btnPermission.ratingSaleCompTime" title="{{!btnPermission.ratingSaleCompTime?'无权限执行此操作':''}}">配置日期</button>
                        <button class="btn btn-operate m-r-sm" ng-click="saleCompFunc.importData()"
                                ng-disabled="!btnPermission.ratingSaleCompImp" title="{{!btnPermission.ratingSaleCompImp?'无权限执行此操作':''}}">导入数据</button>
                        <button class="btn btn-operate m-r-sm" ng-click="saleCompFunc.goAdd()"
                                ng-disabled="!btnPermission.ratingSaleCompAdd" title="{{!btnPermission.ratingSaleCompAdd?'无权限执行此操作':''}}">新增</button>
                        <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingSaleCompDel?'无权限执行此操作':''}}"
                                ng-disabled="!btnPermission.ratingSaleCompDel"
                                ng-click="saleCompFunc.batchDelete(item.id)">删除</button>
                    </div>
                    <div class="search-bar wrapper-none col-xs-8 wrapper-y-sm">
                        <div class="m-l-xs pull-right">
                            <button type="button" class="btn m-r-sm sm-button-padding" ng-click="changeTab(2)">返回</button>
                        </div>
                        <div class="btn-group m-l-xs pull-right">
                            <button type="button" class="btn btn-default base-color" ng-click="saleCompFunc.search(1)" title="刷新">
                                <i class="yb-icon ico-refresh"></i>
                            </button>
                        </div>
                        <div class="input-group pull-right clearfix">
                            <input type="text" class="form-control txt-search" ng-model="saleCompObj.condition.clientName" placeholder="请输入客户名">
                            <span class="input-group-addon cursor-pointer" ng-click="saleCompFunc.search(1)">搜索</span>
                        </div>
                    </div>
                </div>
                <div class="main-area">
                    <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                        <div class="th-fixed">
                            <table class="table-fixed border-none" width="{{saleCompleteTb.fixedWidth}}">
                                <thead>
                                <tr>
                                    <th width="40" class="th-check text-center border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allCheckedSaleComp" yb-click="selectAll(saleCompObj.dataList, 'SaleComp')"></div>
                                    </th>
                                    <th ng-repeat="itemCol in saleCompleteTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.fixedWidth" fixed-width="tbStyle.fixedWidth"></div>
                                    </th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="th-scroll-x" ng-style="{'left': saleCompleteTb.fixedWidth + 'px'}">
                            <table class="table-fixed border-none" width="{{saleCompleteTb.scrollWidth}}">
                                <thead>
                                <tr>
                                    <th ng-repeat="itemCol in saleCompleteTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-click="toSort(tbConf.tableCol, $index)" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll-y" ng-show="saleCompObj.dataList.length > 0">
                            <table class="table-fixed border-none" width="{{saleCompleteTb.fixedWidth}}">
                                <tbody>
                                <tr ng-repeat="item in saleCompObj.dataList track by $index" ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, saleCompObj.dataList, 'SaleComp')"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in saleCompleteTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingSaleCompEdit?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingSaleCompEdit"
                                                    ng-click="saleCompFunc.goEdit(item)">编辑</button>
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingSaleCompDel?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingSaleCompDel"
                                                    ng-click="saleCompFunc.delete(item.id)">删除</button>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="saleCompObj.dataList.length > 0" ng-style="{'left':saleCompleteTb.fixedWidth + 'px'}">
                            <table class="table-fixed border-none" width="{{saleCompleteTb.scrollWidth}}">
                                <tbody>
                                <tr ng-repeat="item in saleCompObj.dataList track by $index">
                                    <td class="spill-dots" ng-repeat="itemCol in saleCompleteTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="saleCompObj.dataList.length === 0">暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area page-bar wrapper-y-sm clearfix">
                    <div yb-page-info ng-model="saleCompObj.pageInfo" yb-refresh="saleCompFunc.search()"></div>
                </div>
            </div>
            <div class="clearfix" ng-show="saleCompObj.stepList.curStep == 1">
                <form name="saleCompForm" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>选择客户：</label>
                        <div class="col-xs-5 wrapper-none">
                            <div yb-form-clear name="creatorName" ng-model="saleCompObj.detailInfo.clientName" select-obj="saleCompFunc.selectAgent()"
                                 required clear-form="saleCompFunc.clearAgent()" tips-name="客户"></div>
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="saleCompForm.creatorName.$invalid&&!saleCompForm.creatorName.focused&&submitted">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>油品销售目标（金额）：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="oilTarget" class="form-control light-bg" ng-model="saleCompObj.detailInfo.oilTarget"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="3">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="saleCompForm.oilTarget.$invalid&&!saleCompForm.oilTarget.focused&&submitted">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>滤芯销售目标（金额）：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="filterTarget" class="form-control light-bg" ng-model="saleCompObj.detailInfo.filterTarget"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="3">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="saleCompForm.filterTarget.$invalid&&!saleCompForm.filterTarget.focused&&submitted">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>破碎锤销售目标（排）：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="brokenHammerTarget" class="form-control light-bg" ng-model="saleCompObj.detailInfo.brokenHammerTarget"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="3">
                        </div>
                        <div class="col-xs-4 msg-block"
                             ng-if="saleCompForm.brokenHammerTarget.$invalid&&!saleCompForm.brokenHammerTarget.focused&&submitted">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>斗齿销售目标（金额）：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="toothTarget" class="form-control light-bg" ng-model="saleCompObj.detailInfo.toothTarget"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="3">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="saleCompForm.toothTarget.$invalid&&!saleCompForm.toothTarget.focused&&submitted">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>四轮一带销售目标（金额）：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="fourRoundsTarget" class="form-control light-bg" ng-model="saleCompObj.detailInfo.fourRoundsTarget"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="3">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="saleCompForm.fourRoundsTarget.$invalid&&!saleCompForm.fourRoundsTarget.focused&&submitted">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>液压一带销售目标（金额）：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="hydraulicTarget" class="form-control light-bg" ng-model="saleCompObj.detailInfo.hydraulicTarget"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="3">
                        </div>
                        <div class="col-xs-4 msg-block"
                             ng-if="saleCompForm.hydraulicTarget.$invalid&&!saleCompForm.hydraulicTarget.focused&&submitted">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>橡胶件销售目标（金额）：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="rubberPartsTarget" class="form-control light-bg" ng-model="saleCompObj.detailInfo.rubberPartsTarget"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="3">
                        </div>
                        <div class="col-xs-4 msg-block"
                             ng-if="saleCompForm.rubberPartsTarget.$invalid&&!saleCompForm.rubberPartsTarget.focused&&submitted">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-click="saleCompFunc.saveData(saleCompForm.$valid)">提交</button>
                            <button type="button" class="btn btn-default" ng-click="saleCompFunc.cancel()">取消</button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="clearfix" ng-show="saleCompObj.stepList.curStep == 2">
                <div class="clearfix">
                    <form name="saleTimeForm" class="form-horizontal wrapper-md clearfix" novalidate>
                        <div class="form-group">
                            <label class="col-xs-2 control-label"><i>*</i>开始时间：</label>
                            <div class="col-xs-2 wrapper-none">
                                <input type="text" class="form-control date-picker" ng-model="saleCompObj.timeInfo.startTime" name="startTime"
                                       datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)" is-open="datePickerFlag[0]" close-text="关闭"
                                       ng-change="checkDate(saleCompObj.timeInfo, 'startTime', 'endTime')" readonly required>
                            </div>
                            <div class="col-xs-2 msg-block" ng-if="saleTimeForm.startTime.$invalid&&submitted&&!saleTimeForm.startTime.focused">
                                <div class="error-msg">
                                    <i class="yb-icon ico-times-circular"></i>必填项，请填写
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-2 control-label"><i>*</i>结束时间：</label>
                            <div class="col-xs-2 wrapper-none">
                                <input type="text" name="endTime" class="form-control date-picker" ng-model="saleCompObj.timeInfo.endTime"
                                       datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)" is-open="datePickerFlag[1]" close-text="关闭"
                                       ng-change="checkDate(saleCompObj.timeInfo, 'startTime', 'endTime')" readonly required>
                            </div>
                            <div class="col-xs-2 msg-block" ng-if="saleTimeForm.endTime.$invalid&&submitted&&!saleTimeForm.endTime.focused">
                                <div class="error-msg">
                                    <i class="yb-icon ico-times-circular"></i>必填项，请填写
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-offset-2">
                                <button type="button" class="btn btn-primary m-r-sm" ng-click="saleCompFunc.saveTime(saleTimeForm.$valid)">提交</button>
                                <button type="button" class="btn btn-default" ng-click="saleCompFunc.cancel()">取消</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div tab heading="月度计划准确性配置" active="activeFlag[4]" ng-if="activeFlag[4]">
            <div class="clearfix">
                <form name="monthForm" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>开始时间：</label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="monthPlanObj.timeInfo.startTime" name="startTime"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)" is-open="datePickerFlag[0]" close-text="关闭"
                                   ng-change="checkDate(monthPlanObj.timeInfo, 'startTime', 'endTime')" readonly required>
                        </div>
                        <div class="col-xs-2 msg-block" ng-if="monthForm.startTime.$invalid&&submitted&&!monthForm.startTime.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>结束时间：</label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" name="endTime" class="form-control date-picker" ng-model="monthPlanObj.timeInfo.endTime"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)" is-open="datePickerFlag[1]" close-text="关闭"
                                   ng-change="checkDate(monthPlanObj.timeInfo, 'startTime', 'endTime')" readonly required>
                        </div>
                        <div class="col-xs-2 msg-block" ng-show="monthForm.endTime.$invalid&&submitted&&!monthForm.endTime.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-disabled="!btnPermission.ratingMonthPlanSave"
                                    ng-click="monthPlanFunc.saveTimeInfo(monthForm.$valid)">提交</button>
                            <button type="button" class="btn btn-default" ng-click="changeTab(2)">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div tab heading="订单管理规范性配置" active="activeFlag[5]" ng-if="activeFlag[5]">
            <div class="clearfix">
                <form name="orderForm" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>开始时间：</label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="orderManageObj.timeInfo.startTime" name="startTime"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)" is-open="datePickerFlag[0]" close-text="关闭"
                                   ng-change="checkDate(orderManageObj.timeInfo, 'startTime', 'endTime')" readonly required>
                        </div>
                        <div class="col-xs-2 msg-block" ng-if="orderForm.startTime.$invalid&&submitted&&!orderForm.startTime.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>结束时间：</label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" name="endTime" class="form-control date-picker" ng-model="orderManageObj.timeInfo.endTime"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)" is-open="datePickerFlag[1]" close-text="关闭"
                                   ng-change="checkDate(orderManageObj.timeInfo, 'startTime', 'endTime')" readonly required>
                        </div>
                        <div class="col-xs-2 msg-block" ng-if="orderForm.endTime.$invalid&&submitted&&!orderForm.endTime.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>紧急订单最大数量：</label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" name="urgentOrderMaxQty" class="form-control light-bg" ng-model="orderManageObj.timeInfo.urgentOrderMaxQty"
                                   required yb-number-input yb-focus max="9999999" disable-decimal="true">
                        </div>
                        <div class="col-xs-2 msg-block"
                             ng-if="orderForm.urgentOrderMaxQty.$invalid&&submitted&&!orderForm.urgentOrderMaxQty.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-disabled="!btnPermission.ratingOrderManaSave"
                                    ng-click="orderManageFunc.saveTimeInfo(orderForm.$valid)">提交</button>
                            <button type="button" class="btn btn-default" ng-click="changeTab(2)">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div tab heading="应收账款逾期配置" active="activeFlag[6]" ng-if="activeFlag[6]">
            <div class="clearfix" ng-show="receiveCheckObj.stepList.curStep == 0">
                <div class="row wrapper-y-sm">
                    <div class="operate-bar col-xs-4 font-0">
                        <button class="btn btn-operate m-r-sm" ng-click="receiveCheckFunc.importData()"
                                ng-disabled="!btnPermission.ratingReceiveImp" title="{{!btnPermission.ratingReceiveImp?'无权限执行此操作':''}}">导入数据</button>
                    </div>
                    <div class="search-bar wrapper-none col-xs-8 wrapper-y-sm">
                        <div class="m-l-xs pull-right">
                            <button type="button" class="btn m-r-sm sm-button-padding" ng-click="changeTab(2)">返回</button>
                        </div>
                        <div class="btn-group m-l-xs pull-right">
                            <button type="button" class="btn btn-default base-color" ng-click="receiveCheckFunc.search(1)" title="刷新">
                                <i class="yb-icon ico-refresh"></i>
                            </button>
                        </div>
                        <div class="input-group pull-right clearfix">
                            <input type="text" class="form-control txt-search" ng-model="receiveCheckObj.condition.clientName" placeholder="请输入客户名">
                            <span class="input-group-addon cursor-pointer" ng-click="receiveCheckFunc.search(1)">搜索</span>
                        </div>
                    </div>
                </div>
                <div class="main-area">
                    <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                        <div class="th-fixed">
                            <table class="table-fixed border-none" width="{{receiveCheckTb.fixedWidth}}">
                                <thead>
                                <tr>
                                    <th ng-repeat="itemCol in receiveCheckTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-click="toSort(receiveCheckTb.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="receiveCheckTb.fixedWidth" fixed-width="receiveCheckTb.fixedWidth"></div>
                                    </th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="th-scroll-x" ng-style="{'left': receiveCheckTb.fixedWidth + 'px'}">
                            <table class="table-fixed border-none" width="{{receiveCheckTb.scrollWidth}}">
                                <thead>
                                <tr>
                                    <th ng-repeat="itemCol in receiveCheckTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-click="toSort(tbConf.tableCol, $index)" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="receiveCheckTb.scrollWidth"></div>
                                    </th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll-y" ng-show="receiveCheckObj.dataList.length > 0">
                            <table class="table-fixed border-none" width="{{receiveCheckTb.fixedWidth}}">
                                <tbody>
                                <tr ng-repeat="item in receiveCheckObj.dataList track by $index">
                                    <td class="spill-dots" ng-repeat="itemCol in receiveCheckTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingReceiveEdit?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingReceiveEdit"
                                                    ng-click="receiveCheckFunc.goEdit(item)">编辑</button>
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingReceiveDel?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingReceiveDel"
                                                    ng-click="receiveCheckFunc.delete(item.id)">删除</button>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="receiveCheckObj.dataList.length > 0" ng-style="{'left':receiveCheckTb.fixedWidth + 'px'}">
                            <table class="table-fixed border-none" width="{{receiveCheckTb.scrollWidth}}">
                                <tbody>
                                <tr ng-repeat="item in receiveCheckObj.dataList track by $index">
                                    <td class="spill-dots" ng-repeat="itemCol in receiveCheckTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="receiveCheckObj.dataList.length === 0">暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area page-bar wrapper-y-sm clearfix">
                    <div yb-page-info ng-model="receiveCheckObj.pageInfo" yb-refresh="receiveCheckFunc.search()"></div>
                </div>
            </div>
            <div class="clearfix" ng-show="receiveCheckObj.stepList.curStep == 1">
                <form name="receiveForm" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>第一个月回款目标：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="oneReturnTarget" class="form-control light-bg" ng-model="receiveCheckObj.detailInfo.oneReturnTarget"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-show="receiveForm.oneReturnTarget.$invalid&&submitted&&!receiveForm.oneReturnTarget.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>第一个月实际回款：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="oneActualPayment" class="form-control light-bg" ng-model="receiveCheckObj.detailInfo.oneActualPayment"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-show="receiveForm.oneActualPayment.$invalid&&submitted&&!receiveForm.oneActualPayment.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>第一个月实账：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="oneRealAccount" class="form-control light-bg" ng-model="receiveCheckObj.detailInfo.oneRealAccount"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-show="receiveForm.oneRealAccount.$invalid&&submitted&&!receiveForm.oneRealAccount.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>第二个月回款目标：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="twoReturnTarget" class="form-control light-bg" ng-model="receiveCheckObj.detailInfo.twoReturnTarget"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-show="receiveForm.twoReturnTarget.$invalid&&submitted&&!receiveForm.twoReturnTarget.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>第二个月实际回款：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="twoActualPayment" class="form-control light-bg" ng-model="receiveCheckObj.detailInfo.twoActualPayment"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-show="receiveForm.twoActualPayment.$invalid&&submitted&&!receiveForm.twoActualPayment.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>第二个月实账：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="twoRealAccount" class="form-control light-bg" ng-model="receiveCheckObj.detailInfo.twoRealAccount"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-show="receiveForm.twoRealAccount.$invalid&&submitted&&!receiveForm.twoRealAccount.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>第三个月回款目标：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="threeReturnTarget" class="form-control light-bg" ng-model="receiveCheckObj.detailInfo.threeReturnTarget"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-show="receiveForm.threeReturnTarget.$invalid&&submitted&&!receiveForm.threeReturnTarget.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>第三个月实际回款：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="threeActualPayment" class="form-control light-bg" ng-model="receiveCheckObj.detailInfo.threeActualPayment"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-show="receiveForm.threeActualPayment.$invalid&&submitted&&!receiveForm.threeActualPayment.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>第三个月实账：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="threeRealAccount" class="form-control light-bg" ng-model="receiveCheckObj.detailInfo.threeRealAccount"
                                   required yb-focus max="999999999" yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-show="receiveForm.threeRealAccount.$invalid&&submitted&&!receiveForm.threeRealAccount.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-click="receiveCheckFunc.saveData(receiveForm.$valid)">提交</button>
                            <button type="button" class="btn btn-default" ng-click="receiveCheckFunc.cancel()">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div tab heading="总体销售完成率配置" active="activeFlag[7]" ng-if="activeFlag[7]">
            <div class="clearfix" ng-show="allSaleCompObj.stepList.curStep == 0">
                <div class="row wrapper-y-sm">
                    <div class="operate-bar col-xs-4 font-0">
                        <button class="btn btn-operate m-r-sm" ng-click="allSaleCompFunc.goTime()"
                                ng-disabled="!btnPermission.ratingAllSaleTime" title="{{!btnPermission.ratingAllSaleTime?'无权限执行此操作':''}}">配置日期</button>
                        <button class="btn btn-operate m-r-sm" ng-click="allSaleCompFunc.importData()"
                                ng-disabled="!btnPermission.ratingAllSaleImp" title="{{!btnPermission.ratingAllSaleImp?'无权限执行此操作':''}}">导入数据</button>
                        <button class="btn btn-operate m-r-sm" ng-click="allSaleCompFunc.goAdd()"
                                ng-disabled="!btnPermission.ratingAllSaleAdd" title="{{!btnPermission.ratingAllSaleAdd?'无权限执行此操作':''}}">新增</button>
                        <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingAllSaleDel?'无权限执行此操作':''}}"
                                ng-disabled="!btnPermission.ratingAllSaleDel"
                                ng-click="allSaleCompFunc.batchDelete(item.id)">删除</button>
                    </div>
                    <div class="search-bar wrapper-none col-xs-8 wrapper-y-sm">
                        <div class="m-l-xs pull-right">
                            <button type="button" class="btn m-r-sm sm-button-padding" ng-click="changeTab(2)">返回</button>
                        </div>
                        <div class="btn-group m-l-xs pull-right">
                            <button type="button" class="btn btn-default base-color" ng-click="allSaleCompFunc.search(1)" title="刷新">
                                <i class="yb-icon ico-refresh"></i>
                            </button>
                        </div>
                        <div class="input-group pull-right clearfix">
                            <input type="text" class="form-control txt-search" ng-model="allSaleCompObj.condition.clientName" placeholder="请输入客户名">
                            <span class="input-group-addon cursor-pointer" ng-click="allSaleCompFunc.search(1)">搜索</span>
                        </div>
                    </div>
                </div>
                <div class="main-area">
                    <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                        <div class="th-fixed">
                            <table class="table-fixed border-none" width="{{allSaleCompTb.fixedWidth}}">
                                <thead>
                                <tr>
                                    <th width="40" class="th-check text-center border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allCheckedSaleCompRate" yb-click="selectAll(allSaleCompObj.dataList, 'SaleCompRate')"></div>
                                    </th>
                                    <th ng-repeat="itemCol in allSaleCompTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="allSaleCompTb.fixedWidth" fixed-width="allSaleCompTb.fixedWidth"></div>
                                    </th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="th-scroll-x" ng-style="{'left': allSaleCompTb.fixedWidth + 'px'}">
                            <table class="table-fixed border-none" width="{{allSaleCompTb.scrollWidth}}">
                                <thead>
                                <tr>
                                    <th ng-repeat="itemCol in allSaleCompTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-click="toSort(tbConf.tableCol, $index)" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll-y" ng-show="allSaleCompObj.dataList.length > 0">
                            <table class="table-fixed border-none" width="{{allSaleCompTb.fixedWidth}}">
                                <tbody>
                                <tr ng-repeat="item in allSaleCompObj.dataList track by $index">
                                    <td width="40" class="text-center border-l-none">
                                       <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, allSaleCompObj.dataList, 'SaleCompRate')"></div>
                                   </td>
                                    <td class="spill-dots" ng-repeat="itemCol in allSaleCompTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingAllSaleEdit?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingAllSaleEdit"
                                                    ng-click="allSaleCompFunc.goEdit(item)">编辑</button>
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingAllSaleDel?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingAllSaleDel"
                                                    ng-click="allSaleCompFunc.delete(item.id)">删除</button>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="allSaleCompObj.dataList.length > 0" ng-style="{'left':allSaleCompTb.fixedWidth + 'px'}">
                            <table class="table-fixed border-none" width="{{allSaleCompTb.scrollWidth}}">
                                <tbody>
                                <tr ng-repeat="item in allSaleCompObj.dataList track by $index">
                                    <td class="spill-dots" ng-repeat="itemCol in allSaleCompTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="allSaleCompObj.dataList.length === 0">暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area page-bar wrapper-y-sm clearfix">
                    <div yb-page-info ng-model="allSaleCompObj.pageInfo" yb-refresh="allSaleCompFunc.search()"></div>
                </div>
            </div>
            <div class="clearfix" ng-show="allSaleCompObj.stepList.curStep == 1">
                <form name="allSaleForm" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>选择客户：</label>
                        <div class="col-xs-5 wrapper-none">
                            <div yb-form-clear name="clientName" ng-model="allSaleCompObj.detailInfo.clientName" select-obj="allSaleCompFunc.selectAgent()"
                                 required clear-form="allSaleCompFunc.clearAgent()" tips-name="客户"></div>
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="allSaleForm.clientName.$invalid&&submitted&&!allSaleForm.clientName.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>总销售目标金额：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="totalSalesTarget" class="form-control light-bg" ng-model="allSaleCompObj.detailInfo.totalSalesTarget"
                                   required yb-number-input yb-focus max="9999999" disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="allSaleForm.totalSalesTarget.$invalid&&submitted&&!allSaleForm.totalSalesTarget.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">备注：</label>
                        <div class="col-xs-5 wrapper-none">
                            <textarea yb-word-count max-size="100" name="remark" class="form-control full" ng-model="allSaleCompObj.detailInfo.remark"
                                      placeholder="备注" style="height:100px;">
                            </textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-click="allSaleCompFunc.saveData(allSaleForm.$valid)">提交</button>
                            <button type="button" class="btn btn-default" ng-click="allSaleCompFunc.cancel()">取消</button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="clearfix" ng-show="allSaleCompObj.stepList.curStep == 2">
                <form name="allTimeForm" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>开始时间：</label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="allSaleCompObj.timeInfo.startTime" name="startTime"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)" is-open="datePickerFlag[0]" close-text="关闭"
                                   ng-change="checkDate(allSaleCompObj.timeInfo, 'startTime', 'validateEnd')" readonly required>
                        </div>
                        <div class="col-xs-2 msg-block" ng-if="allTimeForm.startTime.$invalid&&submitted&&!allTimeForm.startTime.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>结束时间：</label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" name="endTime" class="form-control date-picker" ng-model="allSaleCompObj.timeInfo.endTime"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)" is-open="datePickerFlag[1]" close-text="关闭"
                                   ng-change="checkDate(allSaleCompObj.timeInfo, 'startTime', 'endTime')" readonly required>
                        </div>
                        <div class="col-xs-2 msg-block" ng-if="allTimeForm.endTime.$invalid&&submitted&&!allTimeForm.endTime.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-click="allSaleCompFunc.saveTime(allTimeForm.$valid)">提交</button>
                            <button type="button" class="btn btn-default" ng-click="allSaleCompFunc.cancel()">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div tab heading="库存管理及业务规范性加减分" active="activeFlag[8]" ng-if="activeFlag[8]">
            <div class="clearfix" ng-show="stockAndBusiObj.stepList.curStep == 0">
                <div class="row wrapper-y-sm">
                    <div class="operate-bar col-xs-4 font-0">
                        <button class="btn btn-operate m-r-sm" ng-click="stockAndBusiFunc.importData()"
                                ng-disabled="!btnPermission.ratingStockImp" title="{{!btnPermission.ratingStockImp?'无权限执行此操作':''}}">导入数据</button>
                        <button class="btn btn-operate m-r-sm" ng-click="stockAndBusiFunc.goAdd()"
                                ng-disabled="!btnPermission.ratingStockAdd" title="{{!btnPermission.ratingStockAdd?'无权限执行此操作':''}}">新增</button>
                    </div>
                    <div class="search-bar wrapper-none col-xs-8 wrapper-y-sm">
                        <div class="m-l-xs pull-right">
                            <button type="button" class="btn m-r-sm sm-button-padding" ng-click="changeTab(2)">返回</button>
                        </div>
                        <div class="btn-group m-l-xs pull-right">
                            <button type="button" class="btn btn-default base-color" ng-click="stockAndBusiFunc.search(1)" title="刷新">
                                <i class="yb-icon ico-refresh"></i>
                            </button>
                        </div>
                        <div class="input-group pull-right clearfix">
                            <input type="text" class="form-control txt-search" ng-model="stockAndBusiObj.condition.clientName" placeholder="请输入客户名">
                            <span class="input-group-addon cursor-pointer" ng-click="stockAndBusiFunc.search(1)">搜索</span>
                        </div>
                    </div>
                </div>
                <div class="main-area">
                    <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                        <div class="th-fixed">
                            <table class="table-fixed border-none" width="{{stockAndBusiTb.fixedWidth}}">
                                <thead>
                                <tr>
                                    <th ng-repeat="itemCol in stockAndBusiTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="allSaleCompTb.fixedWidth" fixed-width="allSaleCompTb.fixedWidth"></div>
                                    </th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="th-scroll-x" ng-style="{'left': stockAndBusiTb.fixedWidth + 'px'}">
                            <table class="table-fixed border-none" width="{{stockAndBusiTb.scrollWidth}}">
                                <thead>
                                <tr>
                                    <th ng-repeat="itemCol in stockAndBusiTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-click="toSort(tbConf.tableCol, $index)" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll-y" ng-show="stockAndBusiObj.dataList.length > 0">
                            <table class="table-fixed border-none" width="{{stockAndBusiTb.fixedWidth}}">
                                <tbody>
                                <tr ng-repeat="item in stockAndBusiObj.dataList track by $index">
                                    <td class="spill-dots" ng-repeat="itemCol in stockAndBusiTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingStockEdit?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingStockEdit"
                                                    ng-click="stockAndBusiFunc.goEdit(item)">编辑</button>
                                            <button class="btn btn-operate m-r-xs" title="{{!btnPermission.ratingStockDel?'无权限执行此操作':''}}"
                                                    ng-disabled="!btnPermission.ratingStockDel"
                                                    ng-click="stockAndBusiFunc.delete(item.id)">删除</button>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="stockAndBusiObj.dataList.length > 0" ng-style="{'left':stockAndBusiTb.fixedWidth + 'px'}">
                            <table class="table-fixed border-none" width="{{stockAndBusiTb.scrollWidth}}">
                                <tbody>
                                <tr ng-repeat="item in stockAndBusiObj.dataList track by $index">
                                    <td class="spill-dots" ng-repeat="itemCol in stockAndBusiTb.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="stockAndBusiObj.dataList.length === 0">暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area page-bar wrapper-y-sm clearfix">
                    <div yb-page-info ng-model="stockAndBusiObj.pageInfo" yb-refresh="stockAndBusiFunc.search()"></div>
                </div>
            </div>
            <div class="clearfix" ng-show="stockAndBusiObj.stepList.curStep == 1">
                <form name="stockForm" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>选择客户：</label>
                        <div class="col-xs-5 wrapper-none">
                            <div yb-form-clear name="clientName" ng-model="stockAndBusiObj.detailInfo.clientName" select-obj="stockAndBusiFunc.selectAgent()"
                                 required clear-form="stockAndBusiFunc.clearAgent()" tips-name="客户"></div>
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="stockForm.clientName.$invalid&&submitted&&!stockForm.clientName.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>库存不准确扣分：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="stockReduce" class="form-control light-bg" ng-model="stockAndBusiObj.detailInfo.inaccurateDeduction"
                                   required yb-number-input yb-focus max="100" min="-100" negative="true" disable-decimal="true"
                                   ng-change="stockAndBusiFunc.changeScore()">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="stockForm.stockReduce.$invalid&&submitted&&!stockForm.stockReduce.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i>业务规范加减分：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" name="businessScore" class="form-control light-bg" ng-model="stockAndBusiObj.detailInfo.businessScore"
                                   required yb-focus max="100" min="-100" negative="true" yb-number-input disable-decimal="true"
                                   ng-change="stockAndBusiFunc.changeScore()">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="stockForm.businessScore.$invalid&&submitted&&!stockForm.businessScore.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">得分：</label>
                        <label class="col-xs-2 control-label text-left">
                            {{stockAndBusiObj.detailInfo.score || 0}}
                        </label>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">备注：</label>
                        <div class="col-xs-5 wrapper-none">
                            <textarea yb-word-count max-size="100" name="remark" class="form-control full" ng-model="stockAndBusiObj.detailInfo.remark"
                                      placeholder="备注" style="height:100px;">
                            </textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-click="stockAndBusiFunc.saveData(stockForm.$valid)">提交</button>
                            <button type="button" class="btn btn-default" ng-click="stockAndBusiFunc.cancel()">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div tab heading="查看评分" active="activeFlag[9]" ng-if="activeFlag[9]">
            <div class="clearfix" ng-show="viewRateObj.stepList.curStep == 0">
                <div class="row wrapper-y-sm">
                    <div class="operate-bar col-xs-4 font-0">
                        <button class="btn btn-operate m-r-sm" ng-click="viewRateFunc.generateRank()"
                                ng-disabled="!btnPermission.ratingGenRank" title="{{!btnPermission.ratingGenRank?'无权限执行此操作':''}}">生成排名</button>
                        <button class="btn btn-operate m-r-sm" yb-download download-url="viewRateObj.exportUrl" download-param="viewRateObj.condition"
                                ng-disabled="!btnPermission.ratingViewRateExp" title="{{!btnPermission.ratingViewRateExp?'无权限执行此操作':''}}">导出</button>
                    </div>
                    <div class="search-bar wrapper-none col-xs-8">
                        <div class="btn-group m-l-xs pull-right">
                            <button type="button" class="btn m-r-sm sm-button-padding" ng-click="changeTab(0)">返回</button>
                        </div>
                        <div class="btn-group m-l-xs pull-right">
                            <button type="button" class="btn btn-default base-color" ng-click="viewRateFunc.search(1)" title="刷新">
                                <i class="yb-icon ico-refresh"></i>
                            </button>
                        </div>
                        <div class="input-group pull-right clearfix">
                            <input type="text" class="form-control txt-search" ng-model="viewRateObj.condition.clientName" placeholder="请输入客户名">
                            <span class="input-group-addon cursor-pointer" ng-click="viewRateFunc.search(1)">搜索</span>
                        </div>
                    </div>
                </div>
                <div class="main-area">
                    <div yb-table-fixed class="table-fixed-wrap">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="{{viewRateTb.scrollWidth}}">
                                <thead>
                                <tr>
                                    <th ng-repeat="item in viewRateTb.tableCol track by $index"
                                        ng-show="!!item.isShow" width="{{item.width}}" colspan="3" title="{{item.name}}"
                                        ng-click="viewRateFunc.toSort(viewRateTb.tableCol, $index)">
                                        <div yb-thead-operate ng-model="item" target-width="viewRateTb.scrollWidth"></div>
                                    </th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-if="viewRateObj.dataList.length > 0">
                            <table class="table-fixed border-none" width="{{viewRateTb.scrollWidth}}">
                                <tbody>
                                <tr ng-repeat="item in viewRateObj.dataList track by $index">
                                    <td class="spill-dots" ng-repeat="itemCol in viewRateTb.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow">
                                        <span title="{{item[itemCol.dataField]}}" ng-if="!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </span>
                                        <a class="btn-operate m-r-xs" ng-click="viewRateFunc.tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="viewRateObj.dataList.length === 0" style="top:41px">暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area page-bar wrapper-y-sm clearfix">
                    <div yb-page-info ng-model="viewRateObj.pageInfo" yb-refresh="viewRateFunc.search()"></div>
                </div>
            </div>
            <div class="clearfix" ng-show="viewRateObj.stepList.curStep == 1">
                <div class="main-area view-rate-sale-order" style="top: 40px;">
                    <div ng-repeat="item in viewRateObj.saleCompDetail track by $index">
                        <div class="view-rate-title col-xs-12">
                            {{item.salesDes}}
                        </div>
                        <div class="font-14">
                            <div class="col-xs-3">
                                <span ng-if="item.salesType !== 3">实际销售金额：</span>
                                <span ng-if="item.salesType === 3">实际销售排：</span>
                                <span ng-if="!viewRateObj.saleCompEditStatus">{{item.actualSalesAmount|YbNull}}</span>
                                <input ng-if="!!viewRateObj.saleCompEditStatus" type="text" yb-number-input class="view-rate-input"
                                       ng-model="item.actualSalesAmount" max="999999999" disable-decimal="false" decimal-places="2">
                            </div>
                            <div class="col-xs-2">
                                <span ng-if="item.salesType !== 3">销售目标金额：</span>
                                <span ng-if="item.salesType === 3">销售目标排：</span>
                                <span>{{item.salesTargetAmount|YbNull}}</span>
                                <span ng-if="item.salesType !== 3">元</span>
                                <span ng-if="item.salesType === 3">台</span>
                            </div>
                            <div class="col-xs-2">
                                <span>完成率：</span>
                                <span>{{item.completeRate|YbNull}}</span>
                            </div>
                            <div class="col-xs-2">
                                <span>得分：</span>
                                <span>{{item.score|YbNull}}&nbsp;分</span>
                            </div>
                        </div>
                    </div>
                    <div class="view-rate-title col-xs-12">
                        <button ng-if="viewRateObj.saleCompDetail.length > 0&&!viewRateObj.saleCompEditStatus" type="button" class="btn btn-primary m-r-sm"
                                ng-click="viewRateFunc.editSaleCompStatus()" ng-disabled="!btnPermission.ratingViewSaleCompEdit">编辑</button>
                        <button ng-if="viewRateObj.saleCompDetail.length > 0&&!!viewRateObj.saleCompEditStatus" type="button" class="btn btn-primary m-r-sm"
                                ng-click="viewRateFunc.saveSaleComp()">保存</button>
                        <button type="button" class="btn btn-default" ng-click="viewRateFunc.cancel()">返回</button>
                    </div>
                </div>
            </div>
            <div class="clearfix" ng-show="viewRateObj.stepList.curStep == 2">
                <form name="receiveForm" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">月度订单：</label>
                        <label ng-if="!viewRateObj.monthEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.monthPlanDetail.monthOrder|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.monthEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="monthOrder" class="form-control light-bg" ng-model="viewRateObj.monthPlanDetail.monthOrder"
                                   required yb-number-input max="999999999" disable-decimal="true">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="receiveForm.monthOrder.$invalid&&submitted&&!receiveForm.monthOrder.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">紧急订单：</label>
                        <label ng-if="!viewRateObj.monthEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.monthPlanDetail.urgentOrder|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.monthEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="urgentOrder" class="form-control light-bg" ng-model="viewRateObj.monthPlanDetail.urgentOrder"
                                   yb-focus yb-number-input max="999999999" disable-decimal="true">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">准确率：</label>
                        <label class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.monthPlanDetail.accuracyRate|YbNull}}
                        </label>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">得分：</label>
                        <label class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.monthPlanDetail.score|YbNull}}
                        </label>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-if="viewRateObj.monthPlanDetail.id&&!viewRateObj.monthEditStatus"
                                    ng-click="viewRateFunc.editMonthPlanStatus()" ng-disabled="!btnPermission.ratingViewMonthPlanEdit">编辑</button>
                            <button type="button" class="btn btn-primary m-r-sm" ng-if="viewRateObj.monthPlanDetail.id&&viewRateObj.monthEditStatus"
                                    ng-click="viewRateFunc.saveMonthPlan(receiveForm.$valid)">保存</button>
                            <button type="button" class="btn btn-default" ng-click="viewRateFunc.cancel()">返回</button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="clearfix" ng-show="viewRateObj.stepList.curStep == 3">
                <form name="manageForm" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">考核标准：</label>
                        <label class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.orderManageDetail.assessmentCriteria|YbNull}}
                        </label>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">紧急订单：</label>
                        <label ng-if="!viewRateObj.orderEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.orderManageDetail.urgentOrder|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.orderEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="urgentOrder" class="form-control light-bg" ng-model="viewRateObj.orderManageDetail.urgentOrder"
                                   required yb-number-input yb-focus max="999999999" disable-decimal="true">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="manageForm.urgentOrder.$invalid&&submitted&&!manageForm.urgentOrder.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">得分：</label>
                        <label class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.orderManageDetail.score|YbNull}}
                        </label>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-if="viewRateObj.orderManageDetail.id&&!viewRateObj.orderEditStatus"
                                    ng-click="viewRateFunc.editOrderManageStatus(manageForm.$valid)" ng-disabled="!btnPermission.ratingViewOrderManaEdit">编辑</button>
                            <button type="button" class="btn btn-primary m-r-sm" ng-if="viewRateObj.orderManageDetail.id&&viewRateObj.orderEditStatus"
                                    ng-click="viewRateFunc.saveOrderManage(manageForm.$valid)">保存</button>
                            <button type="button" class="btn btn-default" ng-click="viewRateFunc.cancel()">返回</button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="clearfix" ng-show="viewRateObj.stepList.curStep == 4">
                <form name="checkForm" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">第一个月回款目标：</label>
                        <label ng-if="!viewRateObj.receiveEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.receiveDetail.oneReturnTarget|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.receiveEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="oneReturnTarget" class="form-control light-bg" ng-model="viewRateObj.receiveDetail.oneReturnTarget"
                                   required yb-number-input yb-focus max="999999999" disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="checkForm.oneReturnTarget.$invalid&&submitted&&!checkForm.oneReturnTarget.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">第一个月实际回款：</label>
                        <label ng-if="!viewRateObj.receiveEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.receiveDetail.oneActualPayment|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.receiveEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="oneActualPayment" class="form-control light-bg" ng-model="viewRateObj.receiveDetail.oneActualPayment"
                                   required yb-number-input yb-focus max="999999999" disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="checkForm.oneActualPayment.$invalid&&submitted&&!checkForm.oneActualPayment.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">第一个月实账：</label>
                        <label ng-if="!viewRateObj.receiveEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.receiveDetail.oneRealAccount|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.receiveEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="oneRealAccount" class="form-control light-bg" ng-model="viewRateObj.receiveDetail.oneRealAccount"
                                   required yb-number-input yb-focus max="999999999" disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="checkForm.oneRealAccount.$invalid&&submitted&&!checkForm.oneRealAccount.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-xs-2 control-label">第二个月回款目标：</label>
                        <label ng-if="!viewRateObj.receiveEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.receiveDetail.twoReturnTarget|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.receiveEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="twoReturnTarget" class="form-control light-bg" ng-model="viewRateObj.receiveDetail.twoReturnTarget"
                                   required yb-number-input yb-focus max="999999999" disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="checkForm.twoReturnTarget.$invalid&&submitted&&!checkForm.twoReturnTarget.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">第二个月实际回款：</label>
                        <label ng-if="!viewRateObj.receiveEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.receiveDetail.twoActualPayment|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.receiveEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="twoActualPayment" class="form-control light-bg" ng-model="viewRateObj.receiveDetail.twoActualPayment"
                                   required yb-number-input yb-focus max="999999999" disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="checkForm.twoActualPayment.$invalid&&submitted&&!checkForm.twoActualPayment.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">第二个月实账：</label>
                        <label ng-if="!viewRateObj.receiveEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.receiveDetail.twoRealAccount|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.receiveEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="twoRealAccount" class="form-control light-bg" ng-model="viewRateObj.receiveDetail.twoRealAccount"
                                   required yb-number-input yb-focus max="999999999" disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="checkForm.twoRealAccount.$invalid&&submitted&&!checkForm.twoRealAccount.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-xs-2 control-label">第三个月回款目标：</label>
                        <label ng-if="!viewRateObj.receiveEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.receiveDetail.threeReturnTarget|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.receiveEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="threeReturnTarget" class="form-control light-bg" ng-model="viewRateObj.receiveDetail.threeReturnTarget"
                                   required yb-number-input yb-focus max="999999999" disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="checkForm.threeReturnTarget.$invalid&&submitted&&!checkForm.threeReturnTarget.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">第三个月实际回款：</label>
                        <label ng-if="!viewRateObj.receiveEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.receiveDetail.threeActualPayment|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.receiveEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="threeActualPayment" class="form-control light-bg" ng-model="viewRateObj.receiveDetail.threeActualPayment"
                                   required yb-number-input yb-focus max="999999999" disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="checkForm.threeActualPayment.$invalid&&submitted&&!checkForm.threeActualPayment.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">第三个月实账：</label>
                        <label ng-if="!viewRateObj.receiveEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.receiveDetail.threeRealAccount|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.receiveEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="threeRealAccount" class="form-control light-bg" ng-model="viewRateObj.receiveDetail.threeRealAccount"
                                   required yb-number-input yb-focus max="999999999" disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="checkForm.threeRealAccount.$invalid&&submitted&&!checkForm.threeRealAccount.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>


                    <div class="form-group">
                        <label class="col-xs-2 control-label">得分：</label>
                        <label class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.receiveDetail.score|YbNull}}
                        </label>
                    </div>

                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-if="viewRateObj.receiveDetail.id&&!viewRateObj.receiveEditStatus"
                                    ng-click="viewRateFunc.editReceiveStatus()" ng-disabled="!btnPermission.ratingViewReceiveEdit">编辑</button>
                            <button type="button" class="btn btn-primary m-r-sm" ng-if="viewRateObj.receiveDetail.id&&viewRateObj.receiveEditStatus"
                                    ng-click="viewRateFunc.saveReceiveCheck(checkForm.$valid)">保存</button>
                            <button type="button" class="btn btn-default" ng-click="viewRateFunc.cancel()">返回</button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="clearfix" ng-show="viewRateObj.stepList.curStep == 5">
                <form name="allSaleForm" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">目标金额：</label>
                        <label class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.allSaleDetail.targetAmount|YbNull}}
                        </label>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">实际完成金额：</label>
                        <label ng-if="!viewRateObj.allSaleEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.allSaleDetail.actualAmount|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.allSaleEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="actualAmount" class="form-control light-bg" ng-model="viewRateObj.allSaleDetail.actualAmount"
                                   required yb-number-input yb-focus max="999999999" disable-decimal="false" decimal-places="2">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="allSaleForm.actualAmount.$invalid&&submitted&&!allSaleForm.actualAmount.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">完成率：</label>
                        <label class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.allSaleDetail.completeRate|YbNull}}
                        </label>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">得分：</label>
                        <label class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.allSaleDetail.score|YbNull}}
                        </label>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-if="viewRateObj.allSaleDetail.id&&!viewRateObj.allSaleEditStatus"
                                    ng-click="viewRateFunc.editAllSaleStatus()" ng-disabled="!btnPermission.ratingViewAllSaleEdit">编辑</button>
                            <button type="button" class="btn btn-primary m-r-sm" ng-if="viewRateObj.allSaleDetail.id&&viewRateObj.allSaleEditStatus"
                                    ng-click="viewRateFunc.saveAllSaleComp(allSaleForm.$valid)">保存</button>
                            <button type="button" class="btn btn-default" ng-click="viewRateFunc.cancel()">返回</button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="clearfix" ng-show="viewRateObj.stepList.curStep == 6">
                <form name="stockForm" class="form-horizontal wrapper-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">库存管理得分：</label>
                        <label ng-if="!viewRateObj.stockEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.stockDetail.stockScore|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.stockEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="stockScore" class="form-control light-bg" ng-model="viewRateObj.stockDetail.stockScore"
                                   required yb-focus yb-number-input yb-focus max="100" disable-decimal="true">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="stockForm.stockScore.$invalid&&submitted&&!stockForm.stockScore.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">业务规范性加减分：</label>
                        <label ng-if="!viewRateObj.stockEditStatus" class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.stockDetail.criterionScore|YbNull}}
                        </label>
                        <div ng-if="viewRateObj.stockEditStatus" class="col-xs-2 wrapper-none">
                            <input type="text" name="criterionScore" class="form-control light-bg" ng-model="viewRateObj.stockDetail.criterionScore"
                                   required  yb-number-input yb-focus max="100" min="-100" negative="true" disable-decimal="true">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="stockForm.criterionScore.$invalid&&submitted&&!stockForm.criterionScore.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">得分：</label>
                        <label class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.stockDetail.score|YbNull}}
                        </label>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">备注：</label>
                        <label class="col-xs-2 control-label p-l-n text-left clearfix">
                            {{viewRateObj.stockDetail.remark|YbNull}}
                        </label>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2">
                            <button type="button" class="btn btn-primary m-r-sm" ng-if="viewRateObj.stockDetail.id&&!viewRateObj.stockEditStatus"
                                    ng-click="viewRateFunc.editStockStatus()" ng-disabled="!btnPermission.ratingViewStockEdit">编辑</button>
                            <button type="button" class="btn btn-primary m-r-sm" ng-if="viewRateObj.stockDetail.id&&viewRateObj.stockEditStatus"
                                    ng-click="viewRateFunc.saveStockAndBusi(stockForm.$valid)">保存</button>
                            <button type="button" class="btn btn-default" ng-click="viewRateFunc.cancel()">返回</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div tab heading="评级制定" active="activeFlag[10]" ng-if="activeFlag[10]">
            <div class="main-area d-t-35 d-b-60">
                <form name="levelForm" class="main-wrap form-horizontal single-col p-t-xs clearfix" novalidate>
                    <div class="panel-bar clearfix m-b">
                        <div class="pull-left">
                            <span class="level-circle">1</span>
                            <span>S级别</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">名次范围：</label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" yb-number-input name="startRanking" class="form-control light-bg" required yb-focus
                                   ng-model="levelMakeObj.firstLevel.startRanking" max="99999999" disable-decimal="true"
                                   ng-change="mainRatingRulFunc.checkLevel(levelMakeObj.firstLevel)">
                        </div>
                        <label class="col-xs-1 control-label text-center">
                           到
                        </label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" yb-number-input name="endRanking" class="form-control light-bg" required yb-focus
                                   ng-model="levelMakeObj.firstLevel.endRanking" max="99999999" disable-decimal="true"
                                   ng-change="mainRatingRulFunc.checkLevel(levelMakeObj.firstLevel)">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="levelMakeObj.firstLevel.err&&!levelForm.startRanking.focused&&!levelForm.endRanking.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>
                                {{levelMakeObj.firstLevel.errMsg}}
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">开始时间：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="levelMakeObj.firstLevel.effectiveDate" name="effectiveDate"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)" is-open="datePickerFlag[0]" close-text="关闭"
                                   ng-change="checkDate(levelMakeObj.firstLevel, 'effectiveDate', 'failureDate')" readonly required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">结束时间：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="levelMakeObj.firstLevel.failureDate" name="failureDate"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)" is-open="datePickerFlag[1]" close-text="关闭"
                                   ng-change="checkDate(levelMakeObj.firstLevel, 'effectiveDate', 'failureDate')" readonly required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">价格方案：</label>
                        <div class="col-xs-10 wrapper-none" style="width:70%"
                             ng-if="levelMakeObj.firstLevel && levelMakeObj.firstLevel.activityIdList.length > 0">
                            <div>
                                <ul class="price-list">
                                    <li ng-repeat="item in levelMakeObj.firstLevel.activityIdList track by $index">
                                        <span class="spill-dots">{{item.name}}</span>
                                        <i class="glyphicon glyphicon-trash m-l-sm"
                                           ng-click="mainRatingRulFunc.deletePrice(levelMakeObj.firstLevel.activityIdList, $index)"></i>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div ng-if="!levelMakeObj.firstLevel || levelMakeObj.firstLevel.activityIdList.length <= 0"
                             class="col-xs-1 control-label text-left">
                            无
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"></label>
                        <div class="col-xs-5 control-label text-left">
                            <button type="button" class="btn btn-info btn-sm m-r-sm" ng-click="chosePriceScheme(levelMakeObj.firstLevel)">添加价格方案</button>
                        </div>
                    </div>
                    <div class="panel-bar clearfix m-b">
                        <div class="pull-left">
                            <span class="level-circle">2</span>
                            <span>A级别</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">名次范围：</label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" class="form-control light-bg" ng-model="levelMakeObj.secondLevel.startRanking"
                                   yb-focus yb-number-input name="startRanking2" max="99999999" disable-decimal="true"
                                   ng-change="mainRatingRulFunc.checkLevel(levelMakeObj.secondLevel, levelMakeObj.firstLevel)">
                        </div>
                        <label class="col-xs-1 control-label text-center">
                            到
                        </label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" class="form-control light-bg" ng-model="levelMakeObj.secondLevel.endRanking"
                                   yb-focus yb-number-input name="endRanking2" max="99999999" disable-decimal="true"
                                   ng-change="mainRatingRulFunc.checkLevel(levelMakeObj.secondLevel)">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="levelMakeObj.secondLevel.err&&!levelForm.startRanking2.focused&&!levelForm.endRanking2.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>
                                {{levelMakeObj.secondLevel.errMsg}}
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">开始时间：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="levelMakeObj.secondLevel.effectiveDate" name="effectiveDate2"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(2)" is-open="datePickerFlag[2]" close-text="关闭"
                                   ng-change="checkDate(monthPlanObj.detailInfo, 'effectiveDate', 'failureDate')" readonly required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">结束时间：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="levelMakeObj.secondLevel.failureDate" name="failureDate2"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(3)" is-open="datePickerFlag[3]" close-text="关闭"
                                   ng-change="checkDate(monthPlanObj.detailInfo, 'effectiveDate', 'failureDate')" readonly required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">价格方案：</label>
                        <div class="col-xs-10 wrapper-none" style="width:70%"
                             ng-if="levelMakeObj.secondLevel && levelMakeObj.secondLevel.activityIdList.length > 0">
                            <div>
                                <ul class="price-list">
                                    <li ng-repeat="item in levelMakeObj.secondLevel.activityIdList track by $index">
                                        <span class="spill-dots">{{item.name}}</span>
                                        <i class="glyphicon glyphicon-trash m-l-sm"
                                           ng-click="mainRatingRulFunc.deletePrice(levelMakeObj.secondLevel.activityIdList, $index)"></i>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div ng-if="!levelMakeObj.secondLevel || levelMakeObj.secondLevel.activityIdList.length <= 0"
                             class="col-xs-1 control-label text-left">
                            无
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"></label>
                        <div class="col-xs-5 control-label text-left">
                            <button type="button" class="btn btn-info btn-sm m-r-sm" ng-click="chosePriceScheme(levelMakeObj.secondLevel)">添加价格方案</button>
                        </div>
                    </div>
                    <div class="panel-bar clearfix m-b">
                        <div class="pull-left">
                            <span class="level-circle">3</span>
                            <span>B级别</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">名次范围：</label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" yb-number-input name="startRanking3" class="form-control light-bg" ng-model="levelMakeObj.thirdLevel.startRanking"
                                   required yb-focus max="99999999" disable-decimal="true"
                                   ng-change="mainRatingRulFunc.checkLevel(levelMakeObj.thirdLevel, levelMakeObj.secondLevel)">
                        </div>
                        <label class="col-xs-1 control-label text-center">
                            到
                        </label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" yb-number-input name="endRanking3" class="form-control light-bg" ng-model="levelMakeObj.thirdLevel.endRanking"
                                   required yb-focus max="99999999" disable-decimal="true"
                                   ng-change="mainRatingRulFunc.checkLevel(levelMakeObj.thirdLevel)">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="levelMakeObj.thirdLevel.err&&!levelForm.startRanking3.focused&&!levelForm.endRanking3.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>
                                {{levelMakeObj.thirdLevel.errMsg}}
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">开始时间：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="levelMakeObj.thirdLevel.effectiveDate" name="effectiveDate3"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(4)" is-open="datePickerFlag[4]" close-text="关闭"
                                   ng-change="checkDate(levelMakeObj.thirdLevel, 'effectiveDate', 'failureDate')" readonly required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">结束时间：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="levelMakeObj.thirdLevel.failureDate" name="failureDate3"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(5)" is-open="datePickerFlag[5]" close-text="关闭"
                                   ng-change="checkDate(levelMakeObj.thirdLevel, 'effectiveDate', 'failureDate')" readonly required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">价格方案：</label>
                        <div class="col-xs-10 wrapper-none" style="width:70%"
                             ng-if="levelMakeObj.thirdLevel && levelMakeObj.thirdLevel.activityIdList.length > 0">
                            <div>
                                <ul class="price-list">
                                    <li ng-repeat="item in levelMakeObj.thirdLevel.activityIdList track by $index">
                                        <span class="spill-dots">{{item.name}}</span>
                                        <i class="glyphicon glyphicon-trash m-l-sm"
                                           ng-click="mainRatingRulFunc.deletePrice(levelMakeObj.thirdLevel.activityIdList, $index)"></i>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div ng-if="!levelMakeObj.thirdLevel || levelMakeObj.thirdLevel.activityIdList.length <= 0"
                             class="col-xs-1 control-label text-left">
                            无
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"></label>
                        <div class="col-xs-5 control-label text-left">
                            <button type="button" class="btn btn-info btn-sm m-r-sm" ng-click="chosePriceScheme(levelMakeObj.thirdLevel)">添加价格方案</button>
                        </div>
                    </div>
                    <div class="panel-bar clearfix m-b">
                        <div class="pull-left">
                            <span class="level-circle">4</span>
                            <span>C级别</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">名次范围：</label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" yb-number-input name="startRanking4" class="form-control light-bg" ng-model="levelMakeObj.fourthLevel.startRanking"
                                   required yb-focus max="99999999" disable-decimal="true"
                                   ng-change="mainRatingRulFunc.checkLevel(levelMakeObj.fourthLevel, levelMakeObj.thirdLevel)">
                        </div>
                        <label class="col-xs-1 control-label text-center">
                            到
                        </label>
                        <div class="col-xs-2 wrapper-none">
                            <input type="text" yb-number-input name="endRanking4" class="form-control light-bg" ng-model="levelMakeObj.fourthLevel.endRanking"
                                   required yb-focus max="99999999" disable-decimal="true"
                                   ng-change="mainRatingRulFunc.checkLevel(levelMakeObj.fourthLevel)">
                        </div>
                        <div class="col-xs-4 msg-block" ng-if="levelMakeObj.fourthLevel.err&&!levelForm.startRanking4.focused&&!levelForm.endRanking4.focused">
                            <div class="error-msg">
                                <i class="yb-icon ico-times-circular"></i>
                                {{levelMakeObj.fourthLevel.errMsg}}
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">开始时间：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="levelMakeObj.fourthLevel.effectiveDate" name="effectiveDate4"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(6)" is-open="datePickerFlag[6]" close-text="关闭"
                                   ng-change="checkDate(monthPlanObj.detailInfo, 'effectiveDate', 'failureDate')" readonly required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">结束时间：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="levelMakeObj.fourthLevel.failureDate" name="failureDate4"
                                   datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(7)" is-open="datePickerFlag[7]" close-text="关闭"
                                   ng-change="checkDate(levelMakeObj.fourthLevel, 'effectiveDate', 'failureDate')" readonly required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">价格方案：</label>
                        <div class="col-xs-10 wrapper-none" style="width:70%"
                             ng-if="levelMakeObj.fourthLevel && levelMakeObj.fourthLevel.activityIdList.length > 0">
                            <div>
                                <ul class="price-list">
                                    <li ng-repeat="item in levelMakeObj.fourthLevel.activityIdList track by $index">
                                        <span class="spill-dots">{{item.name}}</span>
                                        <i class="glyphicon glyphicon-trash m-l-sm"
                                           ng-click="mainRatingRulFunc.deletePrice(levelMakeObj.fourthLevel.activityIdList, $index)"></i>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div ng-if="!levelMakeObj.fourthLevel || levelMakeObj.fourthLevel.activityIdList.length <= 0"
                             class="col-xs-1 control-label text-left">
                            无
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"></label>
                        <div class="col-xs-5 control-label text-left">
                            <button type="button" class="btn btn-info btn-sm m-r-sm" ng-click="chosePriceScheme(levelMakeObj.fourthLevel)">添加价格方案</button>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"></label>
                        <div class="col-xs-5 control-label text-left">
                            <button type="button" class="btn btn-primary m-r-sm" ng-disabled="!btnPermission.ratingMakeLevelSave"
                                    ng-click="mainRatingRulFunc.saveLevelInfo()">保存</button>
                            <button type="button" class="btn btn-default m-r-sm" ng-click="changeTab(0)">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>